//
//  LHYBaseTableViewController.m
//  rabbit微博
//
//  Created by mac on 15/12/15.
//  Copyright © 2015年 mac. All rights reserved.
//

#import "LHYBaseTableViewController.h"
#import "LHYVisitorView.h"

@interface LHYBaseTableViewController ()

@property (nonatomic,strong)LHYVisitorView *visitorView;
@property (nonatomic,assign)BOOL userLogin;

@end

@implementation LHYBaseTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

- (void)loadView
{
    self.userLogin = NO;
    
    if (self.userLogin)
    {
        [super loadView];
    }
    else
    {
        [self setVisitorLoginView];
    }

}

- (void)setVisitorLoginView
{
   self.visitorView = [[LHYVisitorView alloc] init];
    
    self.view = self.visitorView;

    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"登录" style:UIBarButtonItemStylePlain target:self action:@selector(userWillLogin)];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"注册" style:UIBarButtonItemStylePlain target:self action:@selector(userWillRegister)];
}

- (void)userWillLogin
{
    NSLog(@"userWillLogin");
    
}

- (void)userWillRegister
{
    NSLog(@"userWillRegister");
    
}



#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
#warning Incomplete implementation, return the number of sections
    return 0;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
#warning Incomplete implementation, return the number of rows
    return 0;
}


@end
